package de.mmis.helferlein.demo;

import java.io.IOException;
import java.net.UnknownHostException;

import de.mmis.core.pojop.NetworkProxy;

public class MultiplierClientStarter {

	/**
	 * @param args
	 * @throws IOException
	 * @throws UnknownHostException
	 */
	public static void main(String[] args) throws UnknownHostException,
			IOException {
		Multiplier multiplier = NetworkProxy.createProxy(Multiplier.class,
				"localhost", 1234);

		MultiplierClient client = new MultiplierClient();
		client.setMultiplier(multiplier);

		System.out.println(client.use(4));

	}
}
